// Carousel (function(theme, $) {theme = theme || {};var instanceName = '__carousel';var PluginCarousel = function($el, opts) {return this.initialize($el, opts);};PluginCarousel.defaults = {loop: true,responsive: {0: {items: 1},479: {items: 1},768: {items: 2},979: {items: 3},1199: {items: 4}},navText: []};PluginCarousel.prototype = {initialize: function($el, opts) {if ($el.data(instanceName)) {return this;} this.$el = $el;this .setData() .setOptions(opts) .build();return this;},setData: function() {this.$el.data(instanceName, this);return this;},setOptions: function(opts) {this.options = $.extend(true, {}, PluginCarousel.defaults, opts, {wrapper: this.$el});return this;},build: function() {if (!($.isFunction($.fn.owlCarousel))) {return this;} var self = this,$el = this.options.wrapper;var isCarouselModule = $el.closest('section').hasClass('s123-module-carousel');$el.addClass('owl-theme');if ($('html').attr('dir') == 'rtl') {this.options = $.extend(true, {}, this.options, {rtl: true});} if (this.options.items == 1) {this.options.responsive = {}} if (this.options.items > 4) {this.options = $.extend(true, {}, this.options, {responsive: {1199: {items: this.options.items}}});} if ( isCarouselModule && this.options.items > 2 ) {this.options = $.extend(true, {}, this.options, {responsive: {768: {items: 3},1199: {items: this.options.items}}});} if (this.options.autoHeight) {$(window).afterResize(function() {$el.find('.owl-stage-outer').height( $el.find('.owl-item.active').height() );});$(window).load(function() {$el.find('.owl-stage-outer').height( $el.find('.owl-item.active').height() );});} $el.on('initialized.owl.carousel', function(event) {OwlCarousel_FixRenderIssuer($el);});$el.owlCarousel(this.options).addClass("owl-carousel-init");return this;}};$.extend(theme, {PluginCarousel: PluginCarousel});$.fn.themePluginCarousel = function(opts) {return this.map(function() {var $this = $(this);if ($this.data(instanceName)) {return $this.data(instanceName);} else {return new PluginCarousel($this, opts);}});}}).apply(this, [window.theme, jQuery]);(function($) {'use strict';if ($.isFunction($.fn['themePluginCarousel'])) {$(function() {$('[data-plugin-carousel]:not(.manual), .owl-carousel:not(.manual)').each(function() {var $this = $(this),opts;var pluginOptions = $this.data('plugin-options');if (pluginOptions) opts = pluginOptions;$this.themePluginCarousel(opts);});});}}).apply(this, [jQuery]);(function ($) {$.fn.countTo = function (options) {options = options || {};return $(this).each(function () {var settings = $.extend({}, $.fn.countTo.defaults, {from: $(this).data('from'),to: $(this).data('to'),speed: $(this).data('speed'),refreshInterval: $(this).data('refresh-interval'),decimals: $(this).data('decimals')}, options);var loops = Math.ceil(settings.speed / settings.refreshInterval),increment = (settings.to - settings.from) / loops;var self = this,$self = $(this),loopCount = 0,value = settings.from,data = $self.data('countTo') || {};$self.data('countTo', data);if (data.interval) {clearInterval(data.interval);} data.interval = setInterval(updateTimer, settings.refreshInterval);render(value);function updateTimer() {value += increment;loopCount++;render(value);if (typeof(settings.onUpdate) == 'function') {settings.onUpdate.call(self, value);} if (loopCount >= loops) {$self.removeData('countTo');clearInterval(data.interval);value = settings.to;if (typeof(settings.onComplete) == 'function') {settings.onComplete.call(self, value);}}} function render(value) {var formattedValue = settings.formatter.call(self, value, settings);$self.html(formattedValue);}});};$.fn.countTo.defaults = {from: 0, // the number the element should start at to: 0, // the number the element should end at speed: 1000, // how long it should take to count between the target numbers refreshInterval: 100, // how often the element should be updated decimals: 0, // the number of decimal places to show formatter: formatter, // handler for formatting the value before rendering onUpdate: null, // callback method for every time the element is updated onComplete: null // callback method for when the element finishes updating };function formatter(value, settings) {return value.toFixed(settings.decimals);}}(jQuery));(function(theme, $) {theme = theme || {};var instanceName = '__counter';var PluginCounter = function($el, opts) {return this.initialize($el, opts);};PluginCounter.defaults = {accX: 0,accY: 0,speed: 3000,refreshInterval: 100,decimals: 0,onUpdate: null,onComplete: null};PluginCounter.prototype = {initialize: function($el, opts) {if ($el.data(instanceName)) {return this;} this.$el = $el;this .setData() .setOptions(opts) .build();return this;},setData: function() {this.$el.data(instanceName, this);return this;},setOptions: function(opts) {this.options = $.extend(true, {}, PluginCounter.defaults, opts, {wrapper: this.$el});return this;},build: function() {if (!($.isFunction($.fn.countTo))) {return this;} var self = this,$el = this.options.wrapper;$.extend(self.options, {onComplete: function() {if ($el.data('append')) {$el.html($el.html() + $el.data('append'));} if ($el.data('prepend')) {$el.html($el.data('prepend') + $el.html());}}});$el.appear(function() {$el.countTo(self.options);}, {accX: self.options.accX,accY: self.options.accY});return this;}};$.extend(theme, {PluginCounter: PluginCounter});$.fn.themePluginCounter = function(opts) {return this.map(function() {var $this = $(this);if ($this.data(instanceName)) {return $this.data(instanceName);} else {return new PluginCounter($this, opts);}});}}).apply(this, [window.theme, jQuery]);(function($) {'use strict';if ($.isFunction($.fn['themePluginCounter'])) {$(function() {$('[data-plugin-counter]:not(.manual), .counters [data-to]').each(function() {var $this = $(this),opts;var pluginOptions = $this.data('plugin-options');if (pluginOptions) opts = pluginOptions;$this.themePluginCounter(opts);});});}}).apply(this, [jQuery]);jQuery(function($) {$( document ).on( 's123.page.ready', function( event ) {var layoutNUM = $('#layoutNUM').val();if (layoutNUM!='2' && layoutNUM!='15' && layoutNUM!='3' && layoutNUM!='11' && layoutNUM!='4' && layoutNUM!='20') {if ( $('.home_page:not(.rich_page)').length > 0 ) {var fixedMenuAfterFirstScroll = parseInt($('body').css('margin-top'),10) + parseInt($('body').css('padding-top'),10);if ( layoutNUM == '13' ) {fixedMenuAfterFirstScroll += parseInt($('#mainNav').css('margin-top'),10);} if ( fixedMenuAfterFirstScroll == 0 ) {fixedMenuAfterFirstScroll = 1;}} else {var fixedMenuAfterFirstScroll = parseInt($('body').css('margin-top'),10);} setStickyMenuHandler.init({$mainNav: $('#mainNav'),offSetTop: fixedMenuAfterFirstScroll});if ($('.inside_page').length==0) {var HighlightMenuOnScrollOffset = $('#mainNav').height()+parseInt($('body').css('margin-top'),10);} else {var HighlightMenuOnScrollOffset = parseInt($('body').css('margin-top'),10);} $('body').scrollspy({target: '#mainNav',offset: HighlightMenuOnScrollOffset});if (typeof document.fonts === 'undefined' || typeof document.fonts.ready === 'undefined' || typeof document.fonts.ready.then === 'undefined') {setTimeout(function() {ReduseMenuSizeWhenWeDontHavePlace();},150);} else {document.fonts.ready.then(function () {ReduseMenuSizeWhenWeDontHavePlace();});} $('#mainNav').off('escm.size.changed').on('escm.size.changed', function() {if ( !IsWizard() ) {ResetMoreButton();} else {ReduseMenuSizeWhenWeDontHavePlace();}});S123.ElementSizeChangeManager.escm_observe('mainNav',['width']);}});});jQuery(function($) {$( document ).on( 's123.page.ready', function( event ) {var layoutNUM = $('#layoutNUM').val();if (layoutNUM=='2') {var beforeScrollMenuHeight = $('#mainNav .navbar-header').height()+parseInt($('body').css('margin-top'),10);$('body').scrollspy({target: '#mainNav #top-menu',offset: beforeScrollMenuHeight});setStickyMenuHandler.init({$mainNav: $('#mainNav #top-menu'),offSetTop: beforeScrollMenuHeight});if (typeof document.fonts === 'undefined' || typeof document.fonts.ready === 'undefined' || typeof document.fonts.ready.then === 'undefined') {setTimeout(function() {ReduseMenuSizeWhenWeDontHavePlace();},150);} else {document.fonts.ready.then(function () {ReduseMenuSizeWhenWeDontHavePlace();});} $('#mainNav').off('escm.size.changed').on('escm.size.changed', function() {if ( !IsWizard() ) {ResetMoreButton();} else {ReduseMenuSizeWhenWeDontHavePlace();}});S123.ElementSizeChangeManager.escm_observe('mainNav',['width']);}});});jQuery(function($) {$( document ).on( 's123.page.ready', function( event ) {var layoutNUM = $('#layoutNUM').val();if (layoutNUM=='15') {if ( $('.home_page:not(.rich_page)').length > 0 ) {var fixedMenuAfterFirstScroll = $(window).height()-$('#mainNav').height();} else {var fixedMenuAfterFirstScroll = 0;} setStickyMenuHandler.init({$mainNav: $('#mainNav'),offSetTop: fixedMenuAfterFirstScroll});if ( $('.home_page:not(.rich_page)').length > 0 ) {$('#mainNav').off('affix.bs.affix').on( 'affix.bs.affix', function () {$('.navbar-fixed-top').css({position: 'fixed',bottom: 'auto',top: '0'});});$('#mainNav').off('affix-top.bs.affix').on( 'affix-top.bs.affix', function () {$('.navbar-fixed-top').css({position: 'absolute',bottom: '0',top: 'auto'});});} else {$('.navbar-fixed-top').css({position: '',bottom: '',top: ''});} $('body').scrollspy({target: '#mainNav',offset: $('#mainNav').height()});if (typeof document.fonts === 'undefined' || typeof document.fonts.ready === 'undefined' || typeof document.fonts.ready.then === 'undefined') {setTimeout(function() {ReduseMenuSizeWhenWeDontHavePlace();},150);} else {document.fonts.ready.then(function () {ReduseMenuSizeWhenWeDontHavePlace();});} $('#mainNav').off('escm.size.changed').on('escm.size.changed', function() {if ( !IsWizard() ) {ResetMoreButton();} else {ReduseMenuSizeWhenWeDontHavePlace();}});S123.ElementSizeChangeManager.escm_observe('mainNav',['width']);}});});jQuery(function($) {$( document ).on( 's123.page.ready', function( event ) {var layoutNUM = $('#layoutNUM').val();if (layoutNUM=='20') {if ( !window.layout20_topMenuHeight ) {window.layout20_topMenuHeight = $('#mainNav').outerHeight();} if ( $('.home_page:not(.rich_page)').length > 0 ) {var beforeScrollMenuHeight = $(window).height();} else {var beforeScrollMenuHeight = 0;} $('body').scrollspy({target: '#mainNav',offset: 0 //Must be 0 so the second page (if he is short) will be show });setStickyMenuHandler.init({$mainNav: $('#mainNav'),offSetTop: beforeScrollMenuHeight});if ( $('.home_page:not(.rich_page)').length > 0 ) {$('#mainNav').off('affix.bs.affix').on( 'affix.bs.affix', function () {$('.navbar-fixed-top').css({position: 'fixed',bottom: 'auto',top: '0'});});$('#mainNav').off('affix-top.bs.affix').on( 'affix-top.bs.affix', function () {$('.navbar-fixed-top').css({position:'absolute',bottom: -Math.abs(window.layout20_topMenuHeight),top:'auto'});});} else {$('.navbar-fixed-top').css({'position':'','bottom':'','top':''});} if (typeof document.fonts === 'undefined' || typeof document.fonts.ready === 'undefined' || typeof document.fonts.ready.then === 'undefined') {setTimeout(function() {ReduseMenuSizeWhenWeDontHavePlace();},150);} else {document.fonts.ready.then(function () {ReduseMenuSizeWhenWeDontHavePlace();});} $('#mainNav').off('escm.size.changed').on('escm.size.changed', function() {if ( !IsWizard() ) {ResetMoreButton();} else {ReduseMenuSizeWhenWeDontHavePlace();}});S123.ElementSizeChangeManager.escm_observe('mainNav',['width']);}});});jQuery(function($) {$( document ).on( 's123.page.ready', function( event ) {var layoutNUM = $('#layoutNUM').val();if (layoutNUM=='3' || layoutNUM=='11') {if ( layoutNUM == '3' ) {$("#header").toggleClass('side-menu-slide');} $("#menu-toggle,#smallSidebar").off('click').click(function(e) {e.preventDefault();e.stopPropagation();$("#header").toggleClass("active");layout3_changeBarsIcon();});$("#top-section,.s123-modules-container,.s123-pages-container,footer").off('click.bodyCloseMenu').on('click.bodyCloseMenu', function (e) {$("#header").removeClass("active");layout3_changeBarsIcon();});$('body').scrollspy({target: '#header'});$('#header #top-menu li').not('.dropdown-submenu').find('a').off('click').click(function() {$("#menu-toggle").click();});if (typeof document.fonts === 'undefined' || typeof document.fonts.ready === 'undefined' || typeof document.fonts.ready.then === 'undefined') {setTimeout(function() {ReduseMenuSizeWhenWeDontHavePlaceHeight();},150);} else {document.fonts.ready.then(function () {ReduseMenuSizeWhenWeDontHavePlaceHeight();});} $('#header').off('escm.size.changed').on('escm.size.changed', function() {if ( !IsWizard() ) {ResetMoreButton();} else {ReduseMenuSizeWhenWeDontHavePlaceHeight();}});S123.ElementSizeChangeManager.escm_observe('header',['height']);}});});function layout3_changeBarsIcon() {if ($("#header").hasClass('active')) {$("#menu-toggle").find('.fa').removeClass('fa-bars').addClass('fa-close');} else {$("#menu-toggle").find('.fa').removeClass('fa-close').addClass('fa-bars');}}jQuery(function($) {$( document ).on( 's123.page.ready', function( event ) {var layoutNUM = $('#layoutNUM').val();if (layoutNUM=='4') {$('body').scrollspy({target: '#top-menu'});if (typeof document.fonts === 'undefined' || typeof document.fonts.ready === 'undefined' || typeof document.fonts.ready.then === 'undefined') {setTimeout(function() {ReduseMenuSizeWhenWeDontHavePlaceHeight();},150);} else {document.fonts.ready.then(function () {ReduseMenuSizeWhenWeDontHavePlaceHeight();});} $('#header').off('escm.size.changed').on('escm.size.changed', function() {if ( !IsWizard() ) {ResetMoreButton();} else {ReduseMenuSizeWhenWeDontHavePlaceHeight();}});S123.ElementSizeChangeManager.escm_observe('header',['height']);}});});jQuery(function($) {CarouselModuleInitialize();});function CarouselModuleInitialize() {$( document ).on( 's123.page.ready', function( event ) {var $sections = $('.s123-module-carousel');$sections.each(function( index ) {var $s = $(this);var categories = new ModuleLayoutCategories({$items : $s.find('.carousel-category'),$categoriesContainer : $s.find('.categories-panel'),$filterButton : $s.find('.items-responsive-filter'),$categories : $s.find('.items-categories-container li')});});if ( $.isFunction($.fn['themePluginCarousel']) ) {$sections.find('.owl-carousel.manual').each(function() {var $this = $(this);var opts;var pluginOptions = $this.data('plugin-options');if ( pluginOptions ) {opts = pluginOptions;} $this.themePluginCarousel(opts);if ( !$this.is(':visible') ) {$this.addClass('owl-hidden');}});}});} function OwlCarousel_FixRenderIssuer( $el ) {setTimeout(function(){$el.css({ visibility: 'visible' });},600);}!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,o,a){function h(t,e,n){var s,o="$()."+i+'("'+e+'")';return t.each(function(t,h){var l=a.data(h,i);if(!l)return void r(i+" not initialized. Cannot call methods, i.e. "+o);var c=l[e];if(!c||"_"==e.charAt(0))return void r(o+" is not a valid method");var d=c.apply(l,n);s=void 0===s?d:s}),void 0!==s?s:t}function l(t,e){t.each(function(t,n){var s=a.data(n,i);s?(s.option(e),s._init()):(s=new o(n,e),a.data(n,i,s))})}a=a||e||t.jQuery,a&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=s.call(arguments,1);return h(this,t,e)}return l(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var s=Array.prototype.slice,o=t.console,r="undefined"==typeof o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s